<!DOCTYPE>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="jquery-1.4.3.pack.js"></script>
		<script type="text/javascript" src="jquery-jtemplates.pack.js"></script>
		<script type="text/javascript" src="CalendarCore.js"></script>
		
        <title>日历</title>
        <STYLE type="text/css"> 
            
        </STYLE>
        <script type="text/javascript">
			function outputOAHolidayCalendar(calendarCore) {
				var maxDay = calendarCore.getMaxDayInMonth() + 1;
				var table = $("<table>");
				var tbody = $("<tbody>").appendTo(table);
				for(var i=1;i<maxDay;++i)
				{
					var tr = $("<tr>");
					var td = $("<td>").appendTo(tr);
					td.html(i);
					td = $("<td>");
					tbody.append(tr);
				}
				$("#calendar").append(table);
			};
			
        	onload = function () {
				var calendarCore = new CalendarCore();
				outputOAHolidayCalendar(calendarCore);
			};
        </script>
    </head>
    <body>
    	
        <div id="calendar">
        	
        </div>
    </body>
</html>
